import request from '#/utils/requestAbort';

export async function supplyRequest(params) {
  return request('/distribution/information/tradingSupplyAndDemandAnalysis', {
    method: 'POST',
    data: params,
  });
}

export async function getIssuedStatus(params) {
  return request(`/distribution/multiDayShortTermForecastAdjustment/issuedStatus/${params}`, {
    method: 'POST',
  });
}

export async function getDifference(params) {
  return request('/distribution/multiDayShortTermForecastAdjustment/difference', {
    method: 'POST',
    data: params,
  });
}

export async function getAdjustData(params) {
  return request('/distribution/multiDayShortTermForecastAdjustment/adjustRatioInquire', {
    method: 'POST',
    data: params,
  });
}

export async function computeData(params) {
  return request('/distribution/multiDayShortTermForecastAdjustment/differenceCalculate', {
    method: 'POST',
    data: params,
  });
}

export async function saveData(params) {
  return request('/distribution/multiDayShortTermForecastAdjustment/adjustRatioSave', {
    method: 'POST',
    data: params,
  });
}
